﻿using Sony.Vegas;

public class EntryPoint
{
    public void FromVegas(Vegas app)
    {
        foreach (Sony.Vegas.Track currentTrack in app.Project.Tracks)
        {
            System.Collections.Generic.List<Sony.Vegas.TrackEvent> killSheet = new System.Collections.Generic.List<TrackEvent>();
            foreach (Sony.Vegas.TrackEvent currentEvent in currentTrack.Events)
            {
                if (currentEvent.Mute == true)
                    killSheet.Add(currentEvent);
            }
            foreach (Sony.Vegas.TrackEvent victim in killSheet)
            {
                currentTrack.Events.Remove(victim); // BLAM
            }
        }
    }
}